﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="logon.aspx.cs" Inherits="logon1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <style type="text/css">
    body
    {
        background-image:url(imag/0012.jpg);
        background-size: cover
        }
       #logon
       {
           position:absolute;
           left:60%;
           top:20%;
           width:400px;
           height:400px;
           }
        .style1
        {
            width: 100%;
        }
        .style2
        {
            text-align: left;
        }
        .style3
        {
            text-align: left;
        }
        .style4
        {
            color: #FF0066;
        }
        .style5
        {
            text-align: right;
            height: 31px;
        }
        .style6
        {
            text-align: left;
            height: 31px;
        }
        .style7
        {
            text-align: left;
            height: 24px;
        }
        .style8
        {
            text-align: right;
            width: 130px;
        }
        .style9
        {
            text-align: right;
            height: 31px;
            width: 130px;
        }
    </style>
    <title></title>
</head>
    <body>
    <form id="form1" runat="server">
    <div id="logon">
    
        <table class="style1">
            <tr>
                <td colspan="2" height="40px">
                    用户注册：</td>
            </tr>
            <tr>
                <td class="style8" height="40px">
                    用户名<span class="style4">*</span>：</td>
                <td class="style3" height="40px">
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style8" height="40px">
                    手机号<span class="style4">*</span>：</td>
                <td class="style3" height="40px">
                    <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                        ControlToValidate="TextBox2" ErrorMessage="手机号格式不正确" style="color: #FF0066" 
                        ValidationExpression="[0-9]{11}"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td class="style8" height="40px">
                    姓名<span class="style4">*</span>：</td>
                <td class="style3" height="40px">
                    <asp:TextBox ID="TextBox7" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style8" height="40px">
                    收货地址<span class="style4">*</span>：</td>
                <td class="style3" height="40px">
                    <asp:TextBox ID="TextBox8" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style8" height="40px">
                    密码<span class="style4">*</span>：</td>
                <td class="style3" height="40px">
                    <asp:TextBox ID="TextBox3" runat="server" TextMode="Password"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style8" height="40px">
                    确认密码<span class="style4">*</span>：</td>
                <td class="style3" height="40px">
                    <asp:TextBox ID="TextBox4" runat="server" TextMode="Password"></asp:TextBox>
                    <asp:CompareValidator ID="CompareValidator1" runat="server" 
                        ControlToCompare="TextBox3" ControlToValidate="TextBox4" ErrorMessage="两次密码不一致" 
                        style="color: #FF0066"></asp:CompareValidator>
                </td>
            </tr>
            <tr>
                <td class="style7" colspan="2" height="40px">
                    是否添加密保问题<asp:RadioButtonList ID="RadioButtonList1" runat="server" 
                        AutoPostBack="True" RepeatDirection="Horizontal">
                        <asp:ListItem Value="1">是</asp:ListItem>
                        <asp:ListItem Value="0">否</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td class="style5" colspan="2" height="40px">
                    <asp:Panel ID="Panel1" runat="server">
                        <table class="style1">
                            <tr>
                                <td>
                                    问题一：</td>
                                <td class="style2">
                                    <asp:DropDownList ID="DropDownList1" runat="server" Height="20px" Width="186px" 
                                        DataSourceID="LinqDataSource1" DataTextField="Problem" DataValueField="Problem">
                                    </asp:DropDownList>
                                    <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
                                        ContextTypeName="DataClassesDataContext" EntityTypeName="" 
                                        Select="new (Problem)" TableName="tb_Problem">
                                    </asp:LinqDataSource>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    答案：</td>
                                <td class="style2">
                                    <asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    问题二：</td>
                                <td class="style2">
                                    <asp:DropDownList ID="DropDownList2" runat="server" Height="21px" Width="186px" 
                                        DataSourceID="LinqDataSource1" DataTextField="Problem" DataValueField="Problem">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    答案：</td>
                                <td class="style2">
                                    <asp:TextBox ID="TextBox6" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td class="style9" height="40px">
                    <asp:Button ID="Button1" runat="server" Text="注册" onclick="Button1_Click" 
                        style="font-family: 仿宋; color: #FFFFFF; background-color: #FF9900" />
                </td>
                <td class="style6" height="40px">
                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/login.aspx">返回登陆</asp:HyperLink>
                </td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>